Authorware Article

Eye Candy for Authorware, Part 2: Integrating the Graphics


Table of Contents

  1. Introduction
  2. Setting up the File Properties
  3. Adding the Real Buttons
  4. Adding the Windows Control Treeview
  5. Setting Up the Crumb Trail
  6. Adding the Fake Buttons

Adding the Fake Buttons

To me, this is the most fun part. You don't see translucent buttons very much in Authorware, so they make a nice surprise (even if they are fake). The translucent buttons will be a series of Display Icons that are linked to the PNG files you created in part one. You'll be using the expression in the External Media Browser to create an Over state for the buttons.You'll begin by importing the PNG graphics.

  1. Position the Paste Hand below the Display Icon with the main interface, and click the Import Button. This will open the Import Which File? dialog box.
  2. Click the plus sign (+) at the lower right corner of the dialog box to open the Files to Import pane.

    Importing the files for the fake buttons

    Figure 31. Importing the files for the fake buttons

  3. Add the files for the normal state of each button. Make sure you check link to file checkbox.
  4. Once you've done that, click the Import button to import your selections.

    When you have finished, your flowline should look like figure 32 below.

    The finished flowline

    Figure 32. The finished flowline

    And your Presentation Window will look like figure 33 below.

    The finished presentation window

    Figure 33. The finished presentation window

    The graphics all imported to the same location, so they are all piled on top of one another.

  5. Double-click each of your new Displays and set the mode of the images inside to Alpha.
  6. Move the new graphics to the textured rectangle, so that your file looks like figure 34 below.

    Moving the new graphics to the textured rectangle

    Figure 34. Moving the new graphics to the textured rectangle

  7. This is starting to look like something usable, isn't it? Make sure you save your work. You're nearly done…this is no time to lose it.
  8. Use the Window Menu to open the External Media Browser, or use the shortcut Ctrl+Shift+X.

    The External Media Browser

    (+) View larger

    Figure 35. The External Media Browser

  9. Click one of the icons with external media, and change the type from Literal to Expression. The expression you see in the Expression field (FileLocation^"Finished_pngs\\Next"^Test(ObjectOverID=IconID, "_over", "")^".png") changes from Next.png to Next_over.png when the mouse is over the Next.png Icon.
  10. Make a similar change to all of the expressions.
  11. You'll have to change all three icons to Update Displayed Variables so that you can see the change on rollover. Select all three icons on the flow line and select Edit > Change properties to update this property for all three icons at once.
Updating the icon properties

(+) View larger

Figure 36. Updating the icon properties

Now, all that remains is to add little touches like a label on the button, the placeholder for the course name, and masking the whole thing with MojoWinViz. I leave those to your ingenuity.